<?php
include("../inc/Function.php");
if($_SESSION['a']['alevel']!=5 && $power['hzjl']!=1){
	echo "<script>alert('权限不足');window.location.href='index.php';</script>";exit;
}
$psize = 20;
$page = isset($_GET['page'])?$_GET['page']:1;
$uid = isset($_GET['uid'])?$_GET['uid']:0;
$rid = isset($_GET['rid'])?$_GET['rid']:0;
$list = hzlist($page,$psize,$uid,$rid);
$num = hzlistnum($uid,$rid);
if($list){
    $msg = 1;
}else{
    $msg = 0;
}
$page1 = page1($num,$psize,$page,$_SERVER['PHP_SELF']."?uid=$uid&rid=$rid");
$tpl->assign('page',$page1);
$tpl->assign('msg',$msg);
$tpl->assign('uid',$uid);
$tpl->assign('rid',$rid);
$tpl->assign('hzlist',$list);
$tpl->show('hzlist');
?>